/*

 This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU General Public License
 as published by the Free Software Foundation; version 2
 of the License.

 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.

 You should have received a copy of the GNU General Public License
 along with this program; if not, write to the Free Software
 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.

*/
#import <CoreFoundation/CoreFoundation.h>
#import <Foundation/Foundation.h>
#import <UIKit/CDStructures.h>
#import <UIKit/UIWindow.h>
#import <UIKit/UIView-Hierarchy.h>
#import <UIKit/UIHardware.h>
#import <UIKit/UIKit.h>
#import <UIKit/UIApplication.h>
#import <UIKit/UIView.h>
#import <UIKit/UIKeyboard.h>
#import <UIKit/UIBox.h>
#import <UIKit/UIPreferencesTable.h>
#import <UIKit/UIPreferencesTextTableCell.h>
#import <UIKit/UIPreferencesControlTableCell.h>


@class XBMCControlApplication;
@class XBMCHttpInterface;
@class MediaItemFactory;


@interface NowPlayingView : UIView {
    UIPreferencesTable *m_table;
	UINavigationBar *m_navBar;
	UINavigationBar *m_bottomNavBar;
	XBMCControlApplication *m_mainApp;
	XBMCHttpInterface *m_xbmc;
	struct CGRect m_rect;
	BOOL m_viewIsActive;
	
	UIPreferencesTableCell *m_titleCell;
	UIPreferencesTableCell *m_artistCell;
	UIPreferencesTableCell *m_albumCell;
	UIPreferencesTableCell *m_filenameCell;
	UIPreferencesControlTableCell *m_volumeCell;
	
	UIPushButton *m_prevTrackButton;
	UIPushButton *m_playPauseButton;
	UIPushButton *m_nextTrackButton;
}

- (id) initWithApplication: (UIApplication*)app withAppID: (NSString*)appID withFrame: (struct CGRect)rect;
- (void)activateView;
- (void)deactivateView;


// private methods
-(void) refreshData;
-(void) volumeChanged;
@end
